package com.mohan.system.auth.feign;

import com.mohan.calligraphy.anno.CallParamValid;
import com.mohan.calligraphy.dto.SystemUserRegistry;
import com.mohan.calligraphy.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author mohan
 */
@Component
@FeignClient(value = "calligraphy-system")
public interface SystemManageFeign {

    /**
     * 用户登录远程调用接口
     * @param userRegistry
     * @return
     */
    @PostMapping("/manage/user/login")
    R login(@RequestBody SystemUserRegistry userRegistry);
}
